package easysearch.classes
{
	import com.facebook.graph.FacebookDesktop;
	public class Page
	{
		public var resultType:String = "Page";
		public var pageID:String;
		public var photoURL:String;
		public var category:String;
		public var numberOfLikes:int;
		
		public function Page(json:Object){
			pageID = json.id
			photoURL = FacebookDesktop.getImageUrl(pageID, "large");
			category = json.category;
			numberOfLikes = json.number;
			/*
			jsonDoc = jsonDOC;
			pageID = findField("id", jsonDoc);
			name = findField("first_name", jsonDoc);
			//TODO: category (find out field name that FB uses for this field)
			*/
		}
	}
}